<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>华为ModelArts连接器</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f5f5f5;
        }
        .container {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            width: 400px;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
        }
        input[type="text"] {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        .checkbox-group input[type="checkbox"] {
            margin-right: 0.5rem;
        }
        .button-group {
            display: flex;
            gap: 1rem;
        }
        button {
            flex: 1;
            padding: 0.75rem;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
        }
        .primary-button {
            background-color: #0070f3;
            color: white;
        }
        .secondary-button {
            background-color: #f5f5f5;
            color: #333;
            border: 1px solid #ddd;
        }
        .primary-button:hover {
            background-color: #0051a2;
        }
        .secondary-button:hover {
            background-color: #e5e5e5;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="form-group">
            <label for="appCode">AppCode:</label>
            <input type="text" id="appCode" placeholder="请输入AppCode">
        </div>
        <div class="form-group">
            <label for="url">URL:</label>
            <input type="text" id="url" placeholder="请输入URL">
        </div>
        <div class="checkbox-group">
            <input type="checkbox" id="remember" checked>
            <label for="remember">记住AppCode和URL</label>
        </div>
        <div class="button-group">
            <button class="primary-button" onclick="navigate()">跳转</button>
            <button class="secondary-button" onclick="reload()">重新登录</button>
        </div>
    </div>
    <script src="renderer.js"></script>
</body>
</html> 